package com.fwmagic.dao;

import java.util.List;

import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;

import com.mongodb.WriteResult;

public interface BaseDAO<T> {

	public List<T> list(Query query,Class<T> entityClass);
	
	public T findOne(Query query,Class<T> entityClass);
	
	public void insert(T t);
	
	public WriteResult update(Query query, Update update, Class<?> entityClass);
	
	public void remove(Query query, Class<?> entityClass);
}
